package com.dx.financehy.base;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
* 抽象实体类 ：带有公共字段
* @author fanglei
* @date 2021/07/28
*/
@Data
public abstract class SuperCommonEntity<T extends Model<?>> extends CommonEntity<T> implements Serializable{

    @ApiModelProperty(value = "ID")
    @TableId(value="id", type= IdType.ASSIGN_ID)
    private String id;

    /**
     * 删除标志：0-正常，1-删除
     */
    @JsonIgnore
    @TableLogic
    @TableField(fill= FieldFill.INSERT)
    private Boolean deleted;


}
